<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--    上传文件依赖form表单里面的这个属性-->
    <form enctype="multipart/form-data">
    <div>

        <select name="city" size="5" multiple="multiple">
            <optgroup label="大城市">
                <option value="5">安阳</option>
                <option value="6" selected="selected">汤阴</option>
            </optgroup>
            <option value="1" >北京</option>
            <option value="2">上海</option>
            <option value="3">成都</option>
            <option value="4">郑州</option>
        </select>

        <input type="text" name="user">
        <p>性别(单选框)</p>
        男: <input type="radio" name="sex" value="1" checked="checked">
        女: <input type="radio" name="sex" value="2">

        <p>爱好(多选框)</p>
        足球: <input type="checkbox" name="favor" value="1">
        篮球: <input type="checkbox" name="favor" value="2">
        排球: <input type="checkbox" name="favor" value="3" checked="checked">
        忘球: <input type="checkbox" name="favor" value="4">

        <p>上传文件</p>
        <input type="file" name="fname">
    </div>
        <textarea name="manystr">asdasdasd</textarea>

        <input type="submit" value="提交">
        <input type="reset" value="重置">
    </form>
</body>
</html>